package chamster;

import chamster.actions.HamsterAction;

public class TurnBackAction<HamsterType extends BaseHamster> 
	implements HamsterAction<HamsterType> {

	public boolean isApplicable(HamsterType hamster) throws Exception {
		return hamster.chargeLeft(2);
	}

	public void run(HamsterType hamster) throws Exception {
		hamster.turnLeft();
		hamster.turnLeft();
	}

}
